package com.agmte.api.common.crud.tableAutoCreate;

import lombok.Data;

import java.util.List;

@Data
public class TableInfo {
    private String name;
    private String describe;
    private FieldInfo key;
    private Class<?> clazz;
    private List<FieldInfo> fieldInfos;


    public TableInfo(String tableName, String describe, Class<?> clazz) {
        this.name = tableName;
        this.describe = describe;
        this.clazz = clazz;
    }

    public TableInfo(String name, String describe) {
        this.name = name;
        this.describe = describe;
    }
}